import request from '@/utils/request'

// 查询blog列表
export function listBlog(query) {
  return request({
    url: '/system/blog/list',
    method: 'get',
    params: query
  })
}

// 查询blog详细
export function getBlog(blogId) {
  return request({
    url: '/system/blog/' + blogId,
    method: 'get'
  })
}

// 新增blog
export function addBlog(data) {
  return request({
    url: '/system/blog',
    method: 'post',
    data: data
  })
}

// 修改blog
export function updateBlog(data) {
  return request({
    url: '/system/blog',
    method: 'put',
    data: data
  })
}

// 删除blog
export function delBlog(blogId) {
  return request({
    url: '/system/blog/' + blogId,
    method: 'delete'
  })
}


// 查询blog列表
export function listBlog1(query) {
  return request({
    url: '/admin/blog',
    method: 'get',
    params: query
  })
}
export function blogApplyApi(data) {
  return request({
    url: '/admin/blog',
    method: 'post',
    data
  })
}
// 批量审核
export function blogApplyApiIds(data) {
  return request({
    url: '/admin/blogIds',
    method: 'post',
    data
  })
}

